<?php App::Helper('Toolbar')->setTitle("Contest Links")->setBtnBack()->Render(array('code'=>'retailer_links_top')); ?>
	<?php

		if(!empty($dataList['data']))
		{
			$Grid = App::Module('DataGrid');
			$Grid->setHeader(array('Identifier','Contest Name', 'Website Link','Winners'));
			$Grid->setFooter();
			foreach($dataList['data'] as $key => $row)
			{
				$link = App::Config()->baseUrl("/enter2win/contest/{$row['id']}/" . App::Helper('Utility')->text2normalize($row['contestname']));
				$link2 = App::Config()->baseUrl("/enter2win/contest-winners/{$row['id']}/" . App::Helper('Utility')->text2normalize($row['contestname']));
				$Grid->addRow(
					$row['id'],
					App::Helper('Html')->linkTag($this->baseUrl("/information/manage/e2wcontest/view/{$row['id']}"),$row['contestname']),
					App::Helper('Html')->LinkTag($link,'View Contest',array('target'=>'_blank')),
					App::Helper('Html')->LinkTag($link2,'View Winers')
				);
			}
			$Grid->Render();
		}
		else
		{
			echo $this->callElement('default/tools/message', array('caption' =>'Message','type' => 'message', 'message' => $this->__('No Commetns posted yeat')));
		}
	?>
	<?php App::Helper('Toolbar')->setBtnDelete(Array("id"=>"{'mode':'Comment'}"))->setBtnBack()->Render(array('code'=>'retailer_links_top')); ?>
